import request from '@/utils/request';

// 获取项目数据
export function getProject() {
  return request({
    url: '/api/project',
    method: 'get'
  })
}
// 添加项目数据
export function addProject(data) {
  return request({
    url: '/api/project',
    method: 'post',
    data,
  })
}
// 修改项目数据
export function updateProject(id, data) {
  return request({
    url: `/api/project/${id}`,
    method: 'put',
    data,
  })
}
// 删除项目数据
export function deleteProject(id) {
  return request({
    url: `/api/project/${id}`,
    method: 'delete'
  })
}